<@master template="master/${masterType}"  title="${accessoryTitle}">
<div class="detailsBox">
	<#if (accessoryViews?size>0) >
		<#list accessoryViews as accessoryView>  
		<div class="openBox">
			<h3 class="mt20 action-open-button">${accessoryView.resourceName}<i class="jtIco"></i></h3>
			<#if (accessoryView.subResources?size>0) >
				<#list accessoryView.subResources as subView>
					<div class="openBox" style="display: block;">
						<h3 class=" action-open-button xlh3title">
							<span class="xiala"></span>
							${subView.resourceName}
						</h3>
					<div class="detaiTab detaiTab2">
						<table width="100%" cellspacing="0" cellpadding="0" border="0">
							<tbody>
								<#list subView.subDataListEntity as dataViews>
									<#assign pos=dataViews_index+1/>
									<#if pos%2!=0>
										<tr>
											<td width="45%">${pos}.<a href="/file/download?datalistno=${dataViews.datalistNo}" target="_blank">${dataViews.originalName}</a></td>
									<#else>
											<td width="45%">${pos}.<a href="/file/download?datalistno=${dataViews.datalistNo}" target="_blank">${dataViews.originalName}</a></td>
										</tr>
									</#if>
								</#list>
							</tbody>
						</table>  
					</div>
				</div>
       		</#list>
       	<#else>
			 <div class="detaiTab detaiTab2">
				<table width="100%" cellspacing="0" cellpadding="0" border="0">
					<tbody>
						<#list accessoryView.subDataListEntity as dataViews>
							<#assign pos=dataViews_index+1/>
							<#if pos%2!=0>
								<tr>
									<td width="45%">${pos}.<a href="/file/download?datalistno=${dataViews.datalistNo}" target="_blank">${dataViews.originalName}</a></td>
									<#else>
										<td width="45%">${pos}.<a href="/file/download?datalistno=${dataViews.datalistNo}" target="_blank">${dataViews.originalName}</a></td>
								</tr>
							</#if>
						</#list>
					</tbody>
				</table>  
			</div>
       	</#if>
    </div>
	</#list>
<#else>
	 <div class="detaiTab detaiTab2">
				<table width="100%" cellspacing="0" cellpadding="0" border="0">
					<tbody>
						<#list accessory.subDataListEntity as dataViews>
							<#assign pos=dataViews_index+1/>
							<#if pos%2!=0>
								<tr>
									<td width="45%">${pos}.<a href="/file/download?datalistno=${dataViews.datalistNo}" target="_blank">${dataViews.originalName}</a></td>
									<#else>
										<td width="45%">${pos}.<a href="/file/download?datalistno=${dataViews.datalistNo}" target="_blank">${dataViews.originalName}</a></td>
								</tr>
							</#if>
						</#list>
					</tbody>
				</table>  
			</div>
</#if>

</div>
</@master>
